<div id="content-restaurant" style="height: 850px">
    
            <?php $breadcrumbs->addItem("Restaurant ".ucfirst($restaurantInfo->getHalalmenuCity()), 'list_restaurant_by_departement' ,array('id' => $Departement['75']['id'], 'departement' => $Departement['75']['departement'] )).'.html'; ?>
            <?php $breadcrumbs->addItem($restaurantInfo, 'Restaurant/RestaurantInfo') ?>
    
    <div id="restaurantInfo" style="border:0px solid black;width:63%;height: auto;float: left">
        <?php include_partial('restaurant/restaurant',array('restaurantInfo' => $restaurantInfo, 'moyenneMenuRestaurant' => $moyenneMenuRestaurant)) ?>
  
        <div class="menuRestaurant" style="border:0px solid black">
             <?php include_partial('restaurant/navigation', array('restaurantInfo' => $restaurantInfo)) ?>                
             <?php include_partial('restaurant/information', array('liste_ambiance' => $liste_ambiance,
                                                                   'liste_cuisine'  => $liste_cuisine, 
                                                                   'liste_service'  => $liste_service, 
                                                                   'liste_payments' => $liste_payments )); ?>
   
        </div> 
        <br style="clear: both"/><br/>
        <h3 class="titre"> <?php echo count($restaurantReviews).'&nbsp;'; ?> AVIS </h3>

            <?php if ($sf_user->isAuthenticated()): ?><br/>
            <div class="exemple">
  <h2>Notez le restaurant</h2><br/>
   <!-- in this exemple, 12 is the average and 1 is the id of the line to update in DB -->
   <div style="float: left;margin-left: 0px">Prix<div class="basic" data-average="0" data-id="1"></div></div>
   <div style="float: left;margin-left: 40px">Ambiance<div class="basic" data-average="0" data-id="2"></div></div>
    <div style="float: left;margin-left: 40px">Service<div class="basic" data-average="0" data-id="3"></div></div>
    <div style="float: left;margin-left: 40px">Nourriture<div class="basic" data-average="0" data-id="4"></div></div>
 

 
            </div><br style="clear: both"><br/>
            <h2>et donnez votre avis</h2><br/>
                    <!-- basic exemple -->

             <div id="mybutton" style="color:red;font-size: 16px"></div>
            <div id="avis" style="text-align: right">
            <form name="postcomment" action="<?php echo url_for('user_post') ?>">
                <p><textarea rows="4" cols="70" id="message" ></textarea></p>
                <p style="margin:7px 0px 10px 0px;float: right;background-color: #A6D935;height: 30px;width: 100px;color:white;text-align: center;font-size: 16px;line-height: 25px;font-weight:bold;border-radius:5px"><a  class="buttonPost"  onclick="myAjaxFunction()" style="text-decoration: none;cursor: pointer" >Commenter</a></p>
            </form>
            </div><br style="clear: both"/><br/>
            <?php endif;?>
            <?php foreach ($restaurantReviews as $review):?>
             <div class="block" style="height: 60px;border:0px solid #FF9110;">
             <div class="user" style="float:left;border:0px solid black;width:15%">
               <img src="/images/avatar.jpg"></div>
             <div class="comment" style="float:left;border:0px solid black;width:80%;font-size:14px;font-style: italic;margin-left: 10px"> 
                 <?php $date = new DateTime($review->getCreatedAt()); ?>
                Recommandation posté par <span style="font-weight: bold"><?php echo $review->getHalalmenuProfile()->getsfGuardUser()->getUsername(); ?></span> <span style="margin-left:1px">le&nbsp;<?php  echo $date->format('d/m/Y'); ?>
                    <br/>
                    
                 <p style="margin-top:4px"><?php echo $review->getComment(); ?></p>
             </div>
             </div><br />
            <?php endforeach; ?>
                 
      
    </div>
   
    <?php include_partial('restaurant/map'); ?>   
    <br/>
</div>
 <br style="clear: both">